package com.sunfeng.a01;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Author : 孙峰
 * @Description:
 * @Date : 2022/4/7  11:39
 */
@Slf4j
@Component
public class Component2 {
    @EventListener
    public  void publish(UserRegisteredEvent event){
        log.debug("{}",event);
        log.debug("发送短信:{}","18354680214");
    }
}
